#!/bin/bash

# env = TFC_CTL_out=10-0-1-2:2, TFC_CTL_in=10-0-1-1:2

echo 1 > /proc/sys/net/ipv4/tfc/${TFC_CTL_out}/dummy_enable
echo 1 > /proc/sys/net/ipv4/tfc/${TFC_CTL_out}/padding_enable
echo 1 > /proc/sys/net/ipv4/tfc/${TFC_CTL_out}/multiplexing_enable
echo 1 > /proc/sys/net/ipv4/tfc/${TFC_CTL_out}/fragmentation_enable

echo 1422 > /proc/sys/net/ipv4/tfc/${TFC_CTL_out}/pkt_len_avg
echo 650 > /proc/sys/net/ipv4/tfc/${TFC_CTL_out}/pkt_delay_avg
echo 6 > /proc/sys/net/ipv4/tfc/${TFC_CTL_out}/pkt_send_num
